home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / comm / misc / Getty_13.lha / Getty-13 / Config / Getty.access next >
Text File  |  1996-08-07  |  3KB  |  101 lines

  1. ;=========================================================================
  2. ; Getty access file
  3. ; -----------------
  4. ;
  5. ;  For each user, the Access File must contain entries like this:
  6. ;
  7. ;   USER       UserID
  8. ;   <MODE>     "Programm Arguments"
  9. ;   [SNOOP]    "FileName"
  10. ;   [TIME]     <TimeOut>
  11. ;   [PATH]     <Path>
  12. ;   [CMD]      <Command>
  13. ;
  14. ;  with:
  15. ;
  16. ;   USER        LoginID, *same* as specified in the password file!
  17. ;
  18. ;   <MODE>      can either be one of
  19. ;                  EXEC     - if the programm should be executed
  20. ;                  SHELL    - if a FIFO shell should be opened
  21. ;                  LOCKED   - if the user has no access (no login)
  22. ;
  23. ;   SNOOP       optional, the filename to where the output  will  also  be
  24. ;               echoed to.
  25. ;
  26. ;   TIME        optional, time the user has
  27. ;
  28. ;   PATH        optional, the path the user has *no* access to
  29. ;
  30. ;   CMD         optional, command the user has *no* access to
  31. ;
  32. ;  Comment lines start with a ";" in the FIRST colum.
  33. ;
  34. ;  NOTE: If no PATH or CMD entry is given, the programm  is  executed  and
  35. ;        the   user   has   *full*   access   (unless   you   are  running
  36. ;        multiuser.library)
  37. ;
  38. ;=========================================================================
  39.  
  40. ;This is the described test-user
  41. ;-------------------------------
  42.  
  43. USER      test
  44. SHELL     ""
  45. SNOOP     "RAM:.%u.snoop"
  46.  
  47.  
  48. ;Example of a locked user
  49. ;------------------------
  50.  
  51. USER      locked                      ;user gets no access
  52. LOCKED
  53.  
  54.  
  55. ;Examples for some bugs
  56. ;-----------------------
  57.  
  58. USER      error1                      ;can't open shell, fifo doesn't
  59. SHELL     "mm %D %U %B %P %T %u %h"   ;recognize -> deadlock 'til timeout
  60.                       ;** serious bug, try! no harm **
  61.  
  62. ;USER      error2                     ;passwd entry, but no access entry!
  63.                       ;** fixed, info text is displayed **
  64.  
  65. USER      error3                      ;acces entry, but no SHELL/EXEC
  66.                       ;** fixed, info text is displayed **
  67.  
  68.  
  69. ;Examples for mode set to EXEC
  70. ;-----------------------------
  71.  
  72. USER      exec1                       ;user will see nothing!
  73. EXEC      "c:type c:type hex"
  74.  
  75. USER      exec2                       ;user will see nothing, but the
  76. EXEC      "c:type c:type hex"         ;output is echoed to "RAM:.exec2.snoop"
  77. SNOOP     "RAM:.%u.snoop"
  78.  
  79. USER      shell1                      ;user gets a remote shell with *NO*
  80. SHELL     ""                          ;restrictions!
  81.  
  82. USER      shell2                      ;dito to shell1, but the shell output
  83. SHELL     ""                          ;is also echoed to "RAM:.shell2.snoop"
  84. TIME      30                          ;and the user only has 30 seconds online
  85. SNOOP     "RAM:.%u.snoop"
  86.  
  87. USER      shell3                      ;ahhh, remote shell with restrictions
  88. SHELL     ""                          ;and output echoed to "CON:..."
  89. SNOOP     "CON:0/0/640/200/User: %u"
  90. PATH      RAM:                        ;restricted paths
  91. PATH      C:
  92. CMD       DIR                         ;restricted commands
  93.  
  94. USER      shell4                      ;the output is echoed to the remote
  95. SHELL     "c:type c:type hex"         ;shell. that's all folks!
  96.  
  97. USER      shell5                      ;dito to shell4 but the shell output
  98. SHELL     "c:type c:type hex"         ;is also echoed to "RAM:.shell5.snoop"
  99. SNOOP     "RAM:.%u.snoop"
  100.  
  101.